import request from '@/utils/request'

// 查询养老项目列表
export function listProject(query) {
    return request({
        url: '/pensionProject/project/list',
        method: 'get',
        params: query
    })
}

// 查询养老项目列表
export function listIndexProject(query) {
    return request({
        url: '/pensionProject/project/listIndex',
        method: 'get',
        params: query
    })
}

// 查询养老项目所有列表
export function listAllProject(query) {
    return request({
        url: '/pensionProject/project/listAll',
        method: 'get',
        params: query
    })
}

// 查询养老项目详细
export function getProject(id) {
    return request({
        url: '/pensionProject/project/' + id,
        method: 'get'
    })
}

// 新增养老项目
export function addProject(data) {
    return request({
        url: '/pensionProject/project',
        method: 'post',
        data: data
    })
}

// 修改养老项目
export function updateProject(data) {
    return request({
        url: '/pensionProject/project',
        method: 'put',
        data: data
    })
}

// 删除养老项目
export function delProject(id) {
    return request({
        url: '/pensionProject/project/' + id,
        method: 'delete'
    })
}
